﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<DataAccess.TeamPlayerViewModel>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    GetPlayers
    <style>
        .playerTile
        {
            height: 30px;
            width: 25px;
            float: left;
            margin-left: -1%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        GetPlayers</h2>
    <div style="height: auto; width: auto; border-color: #0d040c;">
        <% foreach (var item in Model)
           { %>
        <div style="float: left; height: 150px; width: 150px">
            <img src='<%: Url.Content("~/Content/Images/defImg.gif") %>' alt='<%:item.Name %>'
                title='<%: item.Name %>' />
            <span>
                <br />
                <%--<%: Html.ActionLink(item.Name,item.ID.ToString()   , new { id=item.Name, })  %>--%>
                <a href='players/<%: item.ID+"/"+ item.Name.ToString().Replace(" ","-")  %>/'>
                    <%:item.Name  %></a> </span>
        </div>
        <% } %>
    </div>
</asp:Content>
